

#ifndef SBK_APPLIB_PYTHON_H
#define SBK_APPLIB_PYTHON_H

#include <sbkpython.h>
#include <sbkconverter.h>
// Module Includes
#include <pyside2_qtwidgets_python.h>
#include <pyside2_qtgui_python.h>
#include <pyside2_qtcore_python.h>

// Binded library includes
#include <NPPPythonObj.h>
// Conversion Includes - Primitive Types
#include <wtypes.h>
#include <qabstractitemmodel.h>
#include <QString>
#include <QStringList>
#include <signalmanager.h>

// Conversion Includes - Container Types
#include <pysideqflags.h>
#include <QLinkedList>
#include <QList>
#include <QMap>
#include <QMultiMap>
#include <QPair>
#include <QQueue>
#include <QSet>
#include <QStack>
#include <QVector>

// Type indices
enum : int {
    SBK_NPPPYTHONOBJ_IDX                                     = 0,
    SBK_AppLib_IDX_COUNT                                     = 1
};
// This variable stores all Python types exported by this module.
extern PyTypeObject** SbkAppLibTypes;

// This variable stores the Python module object exported by this module.
extern PyObject* SbkAppLibModuleObject;

// This variable stores all type converters exported by this module.
extern SbkConverter** SbkAppLibTypeConverters;

// Converter indices
enum : int {
    SBK_APPLIB_QLIST_QOBJECTPTR_IDX                          = 0, // const QList<QObject* > &
    SBK_APPLIB_QLIST_QBYTEARRAY_IDX                          = 1, // QList<QByteArray >
    SBK_APPLIB_QLIST_QVARIANT_IDX                            = 2, // QList<QVariant >
    SBK_APPLIB_QLIST_QSTRING_IDX                             = 3, // QList<QString >
    SBK_APPLIB_QMAP_QSTRING_QVARIANT_IDX                     = 4, // QMap<QString,QVariant >
    SBK_AppLib_CONVERTERS_IDX_COUNT                          = 5
};
// Macros for type check

namespace Shiboken
{

// PyType functions, to get the PyObjectType for a type T
template<> inline PyTypeObject* SbkType< ::NPPPythonObj >() { return reinterpret_cast<PyTypeObject*>(SbkAppLibTypes[SBK_NPPPYTHONOBJ_IDX]); }

} // namespace Shiboken

#endif // SBK_APPLIB_PYTHON_H

